﻿@model KPIS.GERP.Models.ICM.DeliveryNote

@{
    //Layout = "~/Views/Shared/_EmptyLayout.cshtml";
    ViewBag.Title = "แก้ไขรายการตรวจรับ [DN]";
}


@using (Html.BeginForm("Edit", "DeliveryNote", FormMethod.Post, new { id = "form", @class = "form-horizontal" }))
{
    @Html.AntiForgeryToken()

     <div class="block-button-menu-above">

        @Html.ButtonViewAll()
        @Html.ButtonSubmit()

    </div>
    
    @Html.ValidationSummary(true)
    @Html.Partial("_EditForm")   
    @Html.HiddenFor(model => model.RecordStatus)
}


@section Scripts {

@*<link href="~/Content/Ace/assets/css/bootstrap.min.css" rel="stylesheet" />
<script src="~/Content/Ace/assets/js/bootbox.min.js"></script>*@


    
<script type="text/javascript" >

    $('.date-picker').datepicker({ language: 'th-th', format: 'dd/mm/yyyy' });

    $(function () {
        $("form").submit(function (e) {
            e.preventDefault();
            var currentForm = this;
            bootbox.confirm
                ('ต้องการบันทึกข้อมูลใช่หรือไม่', function (result) {
                    if (result) {
                        currentForm.submit();
                    }
                });
        });
    });

    
    </script>
}
